<?php
	if($seat['Seat']['status']==1 && $seat['Seat']['seat_type_id'] == 1){
		echo $this->Html->tag('div', "A", array('class' => 'chair1 chair', 'id' =>  "seat".$seat['Seat']['id'], 'onClick' => "updateSeat("."A".",".$seat['Seat']['id'].");"));
	}elseif($seat['Seat']['status']==1 && $seat['Seat']['seat_type_id'] == 2){		
		echo $this->Html->tag('div', "A", array('class' => 'chair2 chair', 'id' =>  "seat".$seat['Seat']['id'], 'onClick' => "updateSeat("."A".",".$seat['Seat']['id'].");"));
	}elseif($seat['Seat']['status']==0){
		echo $this->Html->tag('div', "", array('class' => 'chair0 chair', 'id' =>  "seat".$seat['Seat']['id'], 'onClick' => "updateSeat('',".$seat['Seat']['id'].");"));
	}else{
		echo $this->Html->tag('div', "", array('class' => 'chair3 chair', 'id' =>  "seat".$seat['Seat']['id']));
	}

?>